home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 80-video-vesa-state.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2006-10-15  |  314 b   |  13 lines

  1. #!/bin/sh
  2.  
  3. if [ x$SAVE_VBE_STATE = "xtrue" ]; then
  4.   # Check if we're in a VESA mode - if so, we need to do things more
  5.   # awkwardly. Otherwise, just use the state from boot.
  6.   VBEMODE=`vbetool vbemode get`;
  7.   if [ $VBEMODE != "3" ]; then
  8.     vbetool vbemode set 3;
  9.     vbetool vbestate save >$VBESTATE;
  10.   fi
  11. fi
  12.  
  13.